package com.doxiaopu.students.product.entity;

import com.doxiaopu.students.component.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
@ApiModel(description= "团单信息")
public class Single extends BaseEntity {
    private static final long serialVersionUID = 70927091722722166L;
    @ApiModelProperty(value = "团单id")
    private Integer id;
    @ApiModelProperty(value = "团单标题")
    private String title;//团单标题
    @ApiModelProperty(value = "介绍内容")
    private String introduce;//介绍内容
    @ApiModelProperty(value = "团单内购价格")
    private String price;//团单内购价格
    @ApiModelProperty(value = "团单原价")
    private String original_price;//团单原价
    @ApiModelProperty(value = "套餐名")
    private String package_name;//套餐名
    @ApiModelProperty(value = "限购数量")
    private String limit_number;//限购数量
    @ApiModelProperty(value = "套餐详情")
    private String package_details;//套餐详情
    @ApiModelProperty(value = "购买须知")
    private String purchase_information;//购买须知
    @ApiModelProperty(value = "图文介绍")
    private String graphic_introduction;//图文介绍
//    @ApiModelProperty(value = "商家账户id")
    private String flagid;//团单id
    @ApiModelProperty(value = "返利状态（0-不返利，1-返利）")
    private Integer rebateState;    //返利状态（0-不返利，1-返利）
    @ApiModelProperty(value = "销售状态（1-上架，2-下架）")
    private Integer saleStatus; //销售状态（1-上架，2-下架）
    @ApiModelProperty(value = "返利金额最新修改时间")
    private Date rebateModifiedTime;  //返利金额最新修改时间
    @ApiModelProperty(value = "销量")
    private Integer salesVolume; //销量
    @ApiModelProperty(value = "返利订单数")
    private Integer rebateOrder; //返利订单数
    @ApiModelProperty(value = "总返利金额")
    private Integer totalRebateAmount; //总返利金额

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getOriginal_price() {
        return original_price;
    }

    public void setOriginal_price(String original_price) {
        this.original_price = original_price;
    }

    public String getPackage_name() {
        return package_name;
    }

    public void setPackage_name(String package_name) {
        this.package_name = package_name;
    }

    public String getLimit_number() {
        return limit_number;
    }

    public void setLimit_number(String limit_number) {
        this.limit_number = limit_number;
    }

    public String getPackage_details() {
        return package_details;
    }

    public void setPackage_details(String package_details) {
        this.package_details = package_details;
    }

    public String getPurchase_information() {
        return purchase_information;
    }

    public void setPurchase_information(String purchase_information) {
        this.purchase_information = purchase_information;
    }

    public String getGraphic_introduction() {
        return graphic_introduction;
    }

    public void setGraphic_introduction(String graphic_introduction) {
        this.graphic_introduction = graphic_introduction;
    }

    public String getFlagid() {
        return flagid;
    }

    public void setFlagid(String flagid) {
        this.flagid = flagid;
    }

    public Integer getRebateState() {
        return rebateState;
    }

    public void setRebateState(Integer rebateState) {
        this.rebateState = rebateState;
    }

    public Integer getSaleStatus() {
        return saleStatus;
    }

    public void setSaleStatus(Integer saleStatus) {
        this.saleStatus = saleStatus;
    }

    public Date getRebateModifiedTime() {
        return rebateModifiedTime;
    }

    public void setRebateModifiedTime(Date rebateModifiedTime) {
        this.rebateModifiedTime = rebateModifiedTime;
    }

    public Integer getSalesVolume() {
        return salesVolume;
    }

    public void setSalesVolume(Integer salesVolume) {
        this.salesVolume = salesVolume;
    }

    public Integer getRebateOrder() {
        return rebateOrder;
    }

    public void setRebateOrder(Integer rebateOrder) {
        this.rebateOrder = rebateOrder;
    }

    public Integer getTotalRebateAmount() {
        return totalRebateAmount;
    }

    public void setTotalRebateAmount(Integer totalRebateAmount) {
        this.totalRebateAmount = totalRebateAmount;
    }

    @Override
    public String toString() {
        return "Single{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", introduce='" + introduce + '\'' +
                ", price='" + price + '\'' +
                ", original_price='" + original_price + '\'' +
                ", package_name='" + package_name + '\'' +
                ", limit_number='" + limit_number + '\'' +
                ", package_details='" + package_details + '\'' +
                ", purchase_information='" + purchase_information + '\'' +
                ", graphic_introduction='" + graphic_introduction + '\'' +
                ", flagid='" + flagid + '\'' +
                ", rebateState=" + rebateState +
                ", saleStatus=" + saleStatus +
                ", rebateModifiedTime=" + rebateModifiedTime +
                ", salesVolume=" + salesVolume +
                ", rebateOrder=" + rebateOrder +
                ", totalRebateAmount=" + totalRebateAmount +
                '}';
    }
}
